<!DOCTYPE html>
<html  lang="en">
    <head>
        <title>Document</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <clild>
                <div slot="header">header</div>
                <div slot="body">body</div>
                <div slot="footer">footer</div>
            </clild>
        </div>

        <script>
            Vue.component("clild",
            {
                template: 
				`<div>
					<slot name="header"></slot>
					<h1>child</h1>
					<slot name="body"></slot>
					<h1>child</h1>
					<slot name="footer"></slot>
                </div>`,
            })
            let vm = new Vue({
                el: '#app'
            })
        </script>
    </body>
</html>